xenpaging: notify policy only on resume
authorKeir Fraser <keir@xen.org>
Fri, 26 Nov 2010 14:20:10 +0000 (14:20 +0000)
committerKeir Fraser <keir@xen.org>
Fri, 26 Nov 2010 14:20:10 +0000 (14:20 +0000)
commit16e8ccb10c22e49fb4dc803509c0937d2ac5a864
tree3b4e979facf9399c785d372d678b94b25ee4edf7
parent9663f9d58392848a52c1cf802219430fa40487c7
xenpaging: notify policy only on resume

If a page is requested more than once, the policy is also notified
more than once about the page-in. However, a page-in happens only
once. Any further resume will only unpause the other vcpu. The
multiple notify will put the page into the mru list multiple times and
it will unlock other already resumed pages too early. In the worst
case, a page that was just resumed can be evicted right away, causing
a deadlock in the guest.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
tools/xenpaging/xenpaging.c